<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<tiles:useAttribute name="userInfo"/>
<tiles:useAttribute name="userProfile"/>

<link rel="stylesheet" type="text/css" href="${ctx}/styles/mid.css" media="screen"/>
<c:if test="${not empty message}">
	<c:out value="${message}"></c:out>
</c:if>
<c:if test="${empty message}">
<div class="div_mid">
	<table class="t_mid4"  cellpadding="5px" cellspacing="0">
		<tr>
			<td class="t_mid4_td_tit">生日</td>
			<td class="t_mid4_td_cnt">
				<fmt:formatDate value="${userInfo.birthday}" pattern="yyyy年MM月dd日"/>
			</td>
			<td class="t_mid4_td_tit">主页</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userInfo.homeUrl}"/>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">Email</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userInfo.email}"/>
			</td>
			<td class="t_mid4_td_tit">手机</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userInfo.tel}"/>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">QQ</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userInfo.qq}"/>
			</td>
			<td class="t_mid4_td_tit">MSN</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userInfo.msn}"/>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">身高</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userProfile.height}"/>
				<font style="color:red;">CM</font>
			</td>
			<td class="t_mid4_td_tit">体重</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userProfile.weight}"/>
				<font style="color:red;">KG</font>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">星座</td>
			<td class="t_mid4_td_cnt">
				<ms:fieldValue type="ASTERISM" value="${userProfile.asterism}"></ms:fieldValue>
			</td>
			<td class="t_mid4_td_tit">性格</td>
			<td class="t_mid4_td_cnt">
				<ms:fieldValue type="CHARACTERISE" value="${userProfile.characterise}"></ms:fieldValue>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">血型</td>
			<td class="t_mid4_td_cnt">
				<ms:fieldValue type="BLOODTYPE" value="${userProfile.bloodType}"></ms:fieldValue>
			</td>
			<td class="t_mid4_td_tit">体型</td>
			<td class="t_mid4_td_cnt">
				<ms:fieldValue type="BODYTYPE" value="${userProfile.bodyType}"></ms:fieldValue>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">吸烟情况</td>
			<td class="t_mid4_td_cnt">
				<ms:fieldValue type="SMOKE" value="${userProfile.smoke}"></ms:fieldValue>
			</td>
			<td class="t_mid4_td_tit">喝酒情况</td>
			<td class="t_mid4_td_cnt">
				<ms:fieldValue type="DRINK" value="${userProfile.drink}"></ms:fieldValue>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">是否已婚</td>
			<td class="t_mid4_td_cnt3">
				<ms:fieldValue type="MARRIED" value="${userProfile.married}"></ms:fieldValue>
			</td>
			<td class="t_mid4_td_tit">薪水</td>
			<td class="t_mid4_td_cnt">
				<ms:fieldValue type="SALARY" value="${userProfile.salary}"></ms:fieldValue>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">现在居住地</td>
			<td colspan="3" class="t_mid4_td_cnt3">
				<ms:city type="text" parent="true" code="${userProfile.residence}"></ms:city>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">住址</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userProfile.address}"/>
			</td>
			<td class="t_mid4_td_tit">住址邮编</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userProfile.postal}"/>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">家乡</td>
			<td colspan="3" class="t_mid4_td_cnt3">
				<ms:city type="text" parent="true" code="${userProfile.hometown}"></ms:city>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">学历</td>
			<td  class="t_mid4_td_cnt">
				<ms:fieldValue type="EDUDEGREE" value="${userProfile.eduDegree}"></ms:fieldValue>
			</td>
			<td class="t_mid4_td_tit">专业</td>
			<td  class="t_mid4_td_cnt">
				<ms:fieldValue type="EDUSPECIALTY" value="${userProfile.eduSpecialty}"></ms:fieldValue>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">学校</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userProfile.eduSchool}"/>
			</td>
			<td class="t_mid4_td_tit">入学时间</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userProfile.eduEnrolYear}"/>年
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">公司</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userProfile.jobCompany}"/>
			</td>
			<td class="t_mid4_td_tit">入值时间</td>
			<td class="t_mid4_td_cnt">
				<c:out value="${userProfile.jobEnrolYear}"/>年
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">职位</td>
			<td class="t_mid4_td_cnt">
				<ms:fieldValue type="JOBTITLE" value="${userProfile.jobTitle}"></ms:fieldValue>
			</td>
			<td class="t_mid4_td_tit">从事行业</td>
			<td  class="t_mid4_td_cnt">
				<ms:fieldValue type="JOBPROFESSION" value="${userProfile.jobProfession}"></ms:fieldValue>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">兴趣爱好</td>
			<td colspan="3" class="t_mid4_td_cnt3">
				<ms:fieldValue type="FAVOTHERS" value="${userProfile.favOthers}"></ms:fieldValue>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">喜欢的运动</td>
			<td colspan="3" class="t_mid4_td_cnt3">
				<ms:fieldValue type="FAVSPORTS" value="${userProfile.favSports}"></ms:fieldValue>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">喜欢的电影</td>
			<td colspan="3" class="t_mid4_td_cnt3">
				<c:out value="${userProfile.favMoive}"/>
			</td>
		</tr>
		<tr>
			<td class="t_mid4_td_tit">喜欢的书籍</td>
			<td colspan="3" class="t_mid4_td_cnt3">
				<c:out value="${userProfile.favBook}"/>
			</td>
		</tr>
	</table>
</div>
</c:if>